CC = gcc
# CFLAGS = -g -O0
CFLAGS = -O0

test_unordered_array_pq: TestUnorderedArrayPQ.c UnorderedArrayPQ.c
	$(CC) $(CFLAGS) -o $@ $^

test_ordered_array_pq: TestOrderedArrayPQ.c OrderedArrayPQ.c
	$(CC) $(CFLAGS) -o $@ $^

test_unordered_list_pq: TestUnorderedListPQ.c UnorderedListPQ.c
	$(CC) $(CFLAGS) -o $@ $^

test_ordered_list_pq: TestOrderedListPQ.c OrderedListPQ.c
	$(CC) $(CFLAGS) -o $@ $^

test_heap_pq: TestHeapPQ.c HeapPQ.c
	$(CC) $(CFLAGS) -o $@ $^

test_pq_sort: TestPQsort.c HeapPQ.c
	$(CC) $(CFLAGS) -o $@ $^

test_heap_sort: TestHeapSort.c
	$(CC) $(CFLAGS) -o $@ $^

test_pq_full: TestPQfull.c UnorderedDoublyLinkedListPQfull.c
	$(CC) $(CFLAGS) -o $@ $^

clean:
	rm -f test_unordered_array_pq test_ordered_array_pq test_unordered_list_pq test_ordered_list_pq test_heap_pq test_pq_sort test_heap_sort test_pq_full